print("Hello World")

# 定义一个变量
message = "Hello Python World !"
print(message)

# 重新给变量赋值
message = "Hello Python Crash Course World !"
print(message)

# 字符串方法调用
name = "ada lovelace"
print(name.title())
name = "Ada Lovelace"
print(name.title())

# 在字符串中使用变量
first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
print(f"Hello, {full_name.title()}")

# 字符串中添加空白符
# \t 制表符
# \n 换行符
print("Languages\n\tPython\n\tJava\n\tPHP")

magicians = ["alice", "david", "carolina"]
for magician in magicians:
    {print(magician)}

cars = ["audi", "bmw", "subaru", "toyota"]
for car in cars:
    if car == "bmw":
        print(car.upper())
    else:
        print(car.title())

user_0 = {
    "username": "efermi",
    "first": "enrico",
    "last": "fermi",
}
for key, value in user_0.items():
    print(f"\nKey: {key}")
    print(f"Value: {value}")

